package modelLayer;

import java.util.ArrayList;


public class SaleContainer
{
   private ArrayList<Sale> sales;
   private static SaleContainer instance;

    private SaleContainer()
    {
        sales = new ArrayList<>();
    }
    
    public static SaleContainer getInstance(){
        
    if(instance == null){
      instance = new SaleContainer();
    }
    return instance;
    }
    
    public void addSale(Sale sale){
      sales.add(sale);
    }
    
     public ArrayList<Sale> getAllSales(){
        return sales;
    }
}

